package com.starhub.monitor.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("智能体调用日志记录详情")
public class ChatLogDetailDto {
    
    @ApiModelProperty("日志ID")
    private Long id;
    
    @ApiModelProperty("请求时间")
    @JsonProperty("request_time")
    private LocalDateTime requestTime;
    
    @ApiModelProperty("请求内容")
    @JsonProperty("request_content")
    private String requestContent;
    
    @ApiModelProperty("响应内容")
    @JsonProperty("response_content")
    private String responseContent;
    
    @ApiModelProperty("状态：0-失败，1-成功，2-告警")
    private Integer status;
    
    @ApiModelProperty("错误信息")
    @JsonProperty("error_message")
    private String errorMessage;
    
    @ApiModelProperty("用户ID")
    @JsonProperty("user_id")
    private Long userId;
    
    @ApiModelProperty("用户名")
    private String username;
    
    @ApiModelProperty("用户真实姓名")
    private String realName;
    
    @ApiModelProperty("智能体ID")
    @JsonProperty("agent_id")
    private Long agentId;
    
    @ApiModelProperty("智能体名称")
    private String agentName;
    
    @ApiModelProperty("创建时间")
    @JsonProperty("create_time")
    private LocalDateTime createTime;
    
    @ApiModelProperty("更新时间")
    @JsonProperty("update_time")
    private LocalDateTime updateTime;
} 